package bean;

/**
 * @author xwu36
 */
public class ServiceInvokeResultEntity<T> {
    private boolean isSuccess;
    private String msg;
    private T data;
    private long timestamp;
    private String url;


    public boolean isSuccess() {
        return isSuccess;
    }

    public ServiceInvokeResultEntity<T> setSuccess(boolean success) {
        isSuccess = success;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public ServiceInvokeResultEntity<T> setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public T getData() {
        return data;
    }

    public ServiceInvokeResultEntity<T> setData(T data) {
        this.data = data;
        return this;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public ServiceInvokeResultEntity<T> setTimestamp(long timestamp) {
        this.timestamp = timestamp;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public ServiceInvokeResultEntity<T> setUrl(String url) {
        this.url = url;
        return this;
    }

    public ServiceInvokeResultEntity(boolean isSuccess, String msg, T data, long timestamp, String url) {
        this.isSuccess = isSuccess;
        this.msg = msg;
        this.data = data;
        this.timestamp = timestamp;
        this.url = url;
    }

    public ServiceInvokeResultEntity() {
    }
}
